<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/Prototipo/controle/InformController.php');

$controle = new InformController();
$res =$controle->listarTodosProcurados();

?>
<table class="table table-hover">
	<thead>
		<tr>
			<th>Ultimo Registro</th>
			<th>Desaparecido</th>
			<th>Data do Registro</th>
			<th>Conte&uacutedo</th>			
		</tr>
	</thead>
	<tbody>
	
	
<?php 

while($inform = mysql_fetch_array($res)){
	$data = $inform['vistoDia'];
	$data = implode("/",array_reverse(explode("-",$data)));
	$dataDes = $inform['data_registro'];
	$dataDes = implode("/",array_reverse(explode("-",$dataDes)));
	$id_informativo = $inform['id_inform'];


?>
		
		<tr onclick="location.href = $url;">
			<td><?php echo $data;?></td>
	 		<td><?php echo $inform['10'];?></td>
	 		<td><?php echo $dataDes;?></td>
	 		<td><?php echo $inform['descricao'];?> </td>
	 		<td><?php echo "<a href='index.php?pg=detalhes_informativo_proc&id=$id_informativo'>Ver mais</a>";?></td>
	 	</tr>
	 	
<?php 
	
}
$_SESSION['consulta_inform'] = $res;
?>
	</tbody>
</table>